package com.fh.fruit.service.activity;

import java.util.List;

import com.fh.entity.Page;
import com.fh.fruit.entity.activity.Activity;
import com.fh.fruit.entity.activity.ActivityRule;
import com.fh.fruit.entity.areagooddetail.AreaGoodDetail;
import com.fh.util.PageData;

/**
 * 活动规则
 * 
 * @author Administrator
 * @version 2017.11.30 15:39
 */
public interface ActivityRuleManager {
	/**
	 * 获取活动规则
	 * 
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 * @return
	 * @throws Exception
	 */
	List<ActivityRule> getActivityRule(Page page) throws Exception;

	/**
	 * 根据id获取活动规则
	 * 
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 * @return
	 * @throws Exception
	 */
	ActivityRule getActivityRuleById(int id) throws Exception;

	/**
	 * 添加活动规则
	 * 
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 * @param ActivityRule
	 * @return
	 * @throws Exception
	 */
	int addActivityRule(PageData pd) throws Exception;

	/**
	 * 修改活动规则
	 * 
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 * @param ActivityRule
	 * @return
	 * @throws Exception
	 */
	int updateActivityRule(PageData pd) throws Exception;

	/**
	 * 删除活动规则
	 * 
	 * @author 葛欢欢
	 * @version 2017.11.30 16:40
	 * @param id
	 * @return
	 * @throws Exception
	 */
	int deleteActivityRule(int id) throws Exception;
}
